package org.ricks.conditon.test;

import org.ricks.ioc.event.IEvent;

public class RechargeEvent implements IEvent {
    private final int amount;
    public RechargeEvent(int amount) { this.amount = amount; }
    public int getAmount() { return amount; }
    public boolean isValidPayment() { return amount > 0; }
}
